#pragma once

#include"RBTree.h"

namespace bit
{
	template<class K>
	class my_set
	{
		struct KeyOfValue
		{
			const K& operator()(const K key)
			{
				return key;
			}
		};
	public:
		typedef typename RBTree<K, const K, KeyOfValue>::iterator iterator;
		typedef typename RBTree<K, const K, KeyOfValue>::const_iterator iterator;
		iterator insert(const K& key)
		{
			return _t.insert(key);
		}
		iterator begin()
		{
			return _t.Begin();
		}
		
		iterator end()
		{
			return _t.End()
		}

	private:
		RBTree<K, const K, KeyOfValue> _t;
	};
}
